import request from './request'

export function login(data) {
  console.log('Login request data:', data)
  return request({
    url: '/auth/login',
    method: 'post',
    data: JSON.stringify(data),
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

export function register(data) {
  return request({
    url: '/auth/register',
    method: 'post',
    data
  })
}

export function joinTeacher(data) {
  return request({
    url: '/auth/student/join-teacher',
    method: 'post',
    data
  })
} 